import { createRouter, createWebHistory } from 'vue-router'
import Layout from '../components/Layout.vue'
import ShishenList from '../views/ShishenList.vue'
import TestConnection from '../views/TestConnection.vue'

const routes = [
  {
    path: '/',
    component: Layout,
    redirect: '/shishen',
    children: [
      {
        path: 'shishen',
        name: 'ShishenList',
        component: ShishenList
      },
      {
        path: 'test',
        name: 'TestConnection',
        component: TestConnection
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router